import { formatYear, formatDate, formatBirthday } from "@/utils/format";

export default function (identity = 0) {
    const normalColumns = [
        {
            title: "员工姓名",
            dataIndex: "staffInfo",
            key: "staffName",
        },
        {
            title: "部门",
            dataIndex: "departmentInfo",
            key: "departmentName",
        },
        
        {
            title: "考勤类型",
            dataIndex: "attendanceType",
            key: "attendanceType",
        },
        {
            title: "考勤时间",
            dataIndex: "createdAt",
            key: "createdAt",
        },
    ];
    const authColums = [];
    const colums =
        identity === 1 ? [...normalColumns, ...authColums] : normalColumns;
    return colums;
}
